package com.gosophia.metadataEngine.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.gosophia.commons.web.action.BaseSupportAction;
import com.gosophia.metadataEngine.dto.MetaDataTableDto;
import com.gosophia.metadataEngine.ws.MetadataEngineWebService;
/**
 * 删除源数据表
 * @author wangxinbing
 * @since 2011-05-09
 */
@Controller("DeleteMetaDataTableAction")
@Scope("prototype")
public class DeleteMetaDataTableAction extends BaseSupportAction {
    
	private Long dataTableId;
	
	private Long dataTableVersion;
	
	private MetaDataTableDto metaDataTableDto;
	
	@Autowired
	private MetadataEngineWebService metadataEngineWebService;
	@Override
	public String _execute() throws Exception {
		metaDataTableDto = metadataEngineWebService.removeMetaDataTable(dataTableId, dataTableVersion);
		return SUCCESS;
	}
	public Long getDataTableId() {
		return dataTableId;
	}
	public void setDataTableId(Long dataTableId) {
		this.dataTableId = dataTableId;
	}
	public Long getDataTableVersion() {
		return dataTableVersion;
	}
	public void setDataTableVersion(Long dataTableVersion) {
		this.dataTableVersion = dataTableVersion;
	}
	public MetaDataTableDto getMetaDataTableDto() {
		return metaDataTableDto;
	}
	public void setMetaDataTableDto(MetaDataTableDto metaDataTableDto) {
		this.metaDataTableDto = metaDataTableDto;
	}
	
	

}
